{"ast":null,"code":"import classNames from 'classnames';\nimport * as React from 'react';\nfunction renderExpandIcon(locale) {\n  return function expandIcon(_ref) {\n    let {\n      prefixCls,\n      onExpand,\n      record,\n      expanded,\n      expandable\n    } = _ref;\n    const iconPrefix = `${prefixCls}-row-expand-icon`;\n    return /*#__PURE__*/React.createElement(\"button\", {\n      type: \"button\",\n      onClick: e => {\n        onExpand(record, e);\n        e.stopPropagation();\n      },\n      className: classNames(iconPrefix, {\n        [`${iconPrefix}-spaced`]: !expandable,\n        [`${iconPrefix}-expanded`]: expandable && expanded,\n        [`${iconPrefix}-collapsed`]: expandable && !expanded\n      }),\n      \"aria-label\": expanded ? locale.collapse : locale.expand,\n      \"aria-expanded\": expanded\n    });\n  };\n}\nexport default renderExpandIcon;","map":{"version":3,"names":["classNames","React","renderExpandIcon","locale","expandIcon","_ref","prefixCls","onExpand","record","expanded","expandable","iconPrefix","createElement","type","onClick","e","stopPropagation","className","collapse","expand"],"sources":["/data/messenger.client/node_modules/antd/es/table/ExpandIcon.js"],"sourcesContent":["import classNames from 'classnames';\nimport * as React from 'react';\nfunction renderExpandIcon(locale) {\n  return function expandIcon(_ref) {\n    let {\n      prefixCls,\n      onExpand,\n      record,\n      expanded,\n      expandable\n    } = _ref;\n    const iconPrefix = `${prefixCls}-row-expand-icon`;\n    return /*#__PURE__*/React.createElement(\"button\", {\n      type: \"button\",\n      onClick: e => {\n        onExpand(record, e);\n        e.stopPropagation();\n      },\n      className: classNames(iconPrefix, {\n        [`${iconPrefix}-spaced`]: !expandable,\n        [`${iconPrefix}-expanded`]: expandable && expanded,\n        [`${iconPrefix}-collapsed`]: expandable && !expanded\n      }),\n      \"aria-label\": expanded ? locale.collapse : locale.expand,\n      \"aria-expanded\": expanded\n    });\n  };\n}\nexport default renderExpandIcon;"],"mappings":"AAAA,OAAOA,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,gBAAgB,CAACC,MAAM,EAAE;EAChC,OAAO,SAASC,UAAU,CAACC,IAAI,EAAE;IAC/B,IAAI;MACFC,SAAS;MACTC,QAAQ;MACRC,MAAM;MACNC,QAAQ;MACRC;IACF,CAAC,GAAGL,IAAI;IACR,MAAMM,UAAU,GAAI,GAAEL,SAAU,kBAAiB;IACjD,OAAO,aAAaL,KAAK,CAACW,aAAa,CAAC,QAAQ,EAAE;MAChDC,IAAI,EAAE,QAAQ;MACdC,OAAO,EAAEC,CAAC,IAAI;QACZR,QAAQ,CAACC,MAAM,EAAEO,CAAC,CAAC;QACnBA,CAAC,CAACC,eAAe,EAAE;MACrB,CAAC;MACDC,SAAS,EAAEjB,UAAU,CAACW,UAAU,EAAE;QAChC,CAAE,GAAEA,UAAW,SAAQ,GAAG,CAACD,UAAU;QACrC,CAAE,GAAEC,UAAW,WAAU,GAAGD,UAAU,IAAID,QAAQ;QAClD,CAAE,GAAEE,UAAW,YAAW,GAAGD,UAAU,IAAI,CAACD;MAC9C,CAAC,CAAC;MACF,YAAY,EAAEA,QAAQ,GAAGN,MAAM,CAACe,QAAQ,GAAGf,MAAM,CAACgB,MAAM;MACxD,eAAe,EAAEV;IACnB,CAAC,CAAC;EACJ,CAAC;AACH;AACA,eAAeP,gBAAgB"},"metadata":{},"sourceType":"module"}